{validate form="edit_publish" id="v_title_empty" append="error" message="Title cannot be empty."}
{validate form="edit_publish" id="v_tinyurl_valid" append="error" message="Tiny URL must be valid."}
{validate form="edit_publish" id="v_content_empty" append="error" message="Content cannot be empty."}
{validate form="edit_publish" id="v_visible_regexp" append="error" message="Visible option must be valid."}
{if $edit_button}
	<div class="failed">
		{foreach $error as $message}
			{$message}<br />
		{foreachelse}
			{if !$good_link}
				This tiny URL was not found in our database.<br />
			{/if}
		{/foreach}
	</div>
{/if}